using UnityEngine;
using UnityEditor;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
public class ParseSphereCollider : ParseObjectHandle<SphereCollider>
{
    public override void Prase(ExportSetting ExportSetting, SphereCollider obj, JArray jArray)
    {
        var ccSphereCollider = ExportSetting.CocosObjectConfig["cc.SphereCollider"].DeepClone();
        ccSphereCollider["_center"] = AssetHelper.TransforCCObject(obj.center);
        ccSphereCollider["_center"]["x"] = -(float)ccSphereCollider["_center"]["x"];
        ccSphereCollider["_radius"] = obj.radius;
        ccSphereCollider["_isTrigger"] = obj.isTrigger;
        jArray.Add(ccSphereCollider);
    }
}
